// 类型定义（提取为独立类型，方便复用）
export type MessageType = 'primary' | 'success' | 'warning' | 'info' | 'error';
export type MessagePosition =
	| 'top'
	| 'top-left'
	| 'top-right'
	| 'bottom'
	| 'bottom-left'
	| 'bottom-right';
export interface MessageProps {
	id?: string;               // 内部用，外部可不传
	type: MessageType;
	message: string;
	duration?: number;
	showClose?: boolean;
	position?: MessagePosition;
	onClose?: () => void;
	index: number;
	offset: number;
}
export interface MessageOptions {
	message: string;
	type?: MessageType;
	duration?: number;
	showClose?: boolean;
	position?: MessagePosition;
	onClose?: () => void;
}
